import 'package:appflutterhomeschool/res/colors.dart';
import 'package:appflutterhomeschool/res/styles.dart';
import 'package:appflutterhomeschool/ui/widgets/button_widget.dart';
import 'package:appflutterhomeschool/ui/widgets/my_app_bar.dart';
import 'package:appflutterhomeschool/ui/widgets/widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

///留言页面
class LeaveWordPage extends StatefulWidget {
  @override
  _LeaveWordPageState createState() => _LeaveWordPageState();
}

class _LeaveWordPageState extends State<LeaveWordPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colours.gray_f6,
      appBar: MyAppBar2(title: "留言"),
      body: Column(
        children: [
          Container(
            margin: EdgeInsets.all(ScreenUtil().setWidth(35)),
            height: ScreenUtil().setWidth(522),
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(10),
              color: Colors.white,
            ),
            child: EditWidget(hintText: "请写下您的宝贵意见",),
          ),
          Container(
            color: Colors.white,
            height: ScreenUtil().setWidth(130),
            child: EditWidget(hintText: "请输入您的联系方式，以便于联系到您",),
          ),
          Container(
              margin: EdgeInsets.only(
                top: ScreenUtil().setWidth(87),
                left: ScreenUtil().setWidth(134),
                right: ScreenUtil().setWidth(134),
              ),
              child: ButtonWidget().ellipseButtonWidget(
                  buttonName: "提交",
                  heightDouble: ScreenUtil().setWidth(130),
                  widthDouble: double.maxFinite,
                  textStyle: TextStyles.textWhite43,
                  onPressed: () {
                    Navigator.pop(context);
                  }),
            )
        ],
      ),
    );
  }
}
